package com.daxidi.cn.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.daxidi.cn.entity.Member;
import com.daxidi.cn.vo.MemberBillVo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 会员表 服务类
 * </p>
 *
 * @author wsh
 * @since 2020-11-09
 */
public interface IMemberService extends IService<Member> {
    public void addMember(Member member);

    public void deleteMemberById(Long id);

    public void updateMemberById(Member member);

    public Map selectMembersPage(Integer pageNum,Integer pageSize,String enable);

    public Member selectMemberById(Long id);

    public Member loginMember(String mobile,String password);

    // 消费记录
    public List<MemberBillVo> consumption(Long memberId);

    public Member selectMember(Long id);

    public Member selectMemberByMemberId(Long memberId);

    public Member selectMemberByCode(String code);

    public Map selectMembersPage(String name, String mobile, String idCard,Integer enable, Integer page, Integer limit);
}
